]> dgit.raspbian.org Git - gnome-shell.git/commit
st-button: Ignore pointer emulated touch events
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 25 Oct 2018 04:35:25 +0000 (06:35 +0200)
committerMarco Trevisan <mail@3v1n0.net>
Mon, 26 Nov 2018 21:18:25 +0000 (21:18 +0000)
commit4c11d15a074aeca72627c44e327e2dc2afa93ae3
tree52902eaa2d620f9a67a9521cb79724727a253548
parent3217c10ff272f44d50afc881ce2a2dbb911dc1e8
st-button: Ignore pointer emulated touch events

In X11, pointer emulated touch events are replicated with normal PRESS, RELEASE
pair events which are generated by the server. Thus for a single tap we get:
 - TOUCH_BEGIN -> TOUCH_END, PRESS -> RELEASE

This will cause st-button to send two "clicked" signals, instead of just one,
breaking extensions (like dash-to-dock) that show buttons in the main stage
which will be checked two times or that will receive the same signal two times.
src/st/st-button.c